]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell: Fix signed-unsigned comparisons
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 17:11:05 +0000 (19:11 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 19:32:50 +0000 (21:32 +0200)
src/shell-app.c
src/shell-perf-log.c
src/shell-util.c

index c33807faa3bc65d3b174e8c488ae26b494e58a0a..2fb6cfda227f8cc46c75e120afcebf67b3dc9a39 100644 (file)
@@ -699,7 +699,7 @@ static int
 shell_app_get_last_user_time (ShellApp *app)
 {
   GSList *iter;
-  int last_user_time;
+  guint32 last_user_time;
 
   last_user_time = 0;
 
@@ -709,7 +709,7 @@ shell_app_get_last_user_time (ShellApp *app)
         last_user_time = MAX (last_user_time, meta_window_get_user_time (iter->data));
     }
 
-  return last_user_time;
+  return (int)last_user_time;
 }
 
 /**
index ab78deddc8ab47187e34bfe35107d5d24c7707be..3c68a77d01b60dc948af13438123a607166a7808 100644 (file)
@@ -626,7 +626,7 @@ shell_perf_log_collect_statistics (ShellPerfLog *perf_log)
 {
   gint64 event_time = get_time ();
   gint64 collection_time;
-  int i;
+  guint i;
 
   if (!perf_log->enabled)
     return;
@@ -819,7 +819,7 @@ shell_perf_log_dump_events (ShellPerfLog   *perf_log,
                             GError        **error)
 {
   GString *output;
-  int i;
+  guint i;
 
   output = g_string_new (NULL);
   g_string_append (output, "[ ");
index e5447c2509d626259b2c15cc83923160c01960ec..33de0200f7cb1dc8b35412475bc3fbb885d156c0 100644 (file)
@@ -84,7 +84,7 @@ shell_util_get_transformed_allocation (ClutterActor    *actor,
    */
   ClutterVertex v[4];
   gfloat x_min, x_max, y_min, y_max;
-  gint i;
+  guint i;
 
   g_return_if_fail (CLUTTER_IS_ACTOR (actor));